home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / General Tools / Headers / Arg.h next >
Text File  |  1999-07-13  |  750b  |  43 lines

  1. #ifndef _ARG_
  2. #define _ARG_
  3.  
  4. #pragma once
  5.  
  6. #include <null.h>
  7.  
  8. class UtilStr;
  9. class MetaExpr;
  10. class CEgOStream;
  11.  
  12. class Arg {
  13.  
  14.     
  15.     public:
  16.                                 Arg( long inID, long inData, Arg* inNext );    
  17.                                 Arg( long inID, const char* inStr, Arg* inNext );
  18.                                 ~Arg();
  19.                     
  20.         void                    Assign( long inData );
  21.         void                    Assign( const UtilStr* inStr );
  22.         void                    Assign( const char* inStr );
  23.                     
  24.         void                    ExportTo( CEgOStream* ioStream ) const;
  25.         
  26.         
  27.         inline unsigned long    GetID()    const                        { return mID;                        }
  28.         inline bool                IsStr() const                        { return mIsStr;                    }
  29.         inline long                GetData() const                        { return mData;                        }
  30.         
  31.  
  32.     protected:
  33.         unsigned long            mID;
  34.         bool                    mIsStr;
  35.         long                    mData;
  36.         
  37.     public:
  38.         Arg*                    mNext;
  39. };
  40.  
  41.  
  42. #endif
  43.